luci-base: rename getLocaltime to getUnixtime
authorPaul Donald <[email protected]>
Fri, 17 Oct 2025 11:44:16 +0000 (13:44 +0200)
committerPaul Donald <[email protected]>
Fri, 17 Oct 2025 11:44:25 +0000 (13:44 +0200)
commit54432996bb44fb97aa74cdacb9c9e623a679e56f
tree73f2c8a6e3d48eabf904801612aeb53dd98a0d47
parent6f7fdff04111c9922d2cd647855a8ef715f06ba4
luci-base: rename getLocaltime to getUnixtime

There appear to be no consumers of getLocaltime. One instance of a
callGetLocaltime uses the system info call whose localtime property uses
tm->tm_gmtoff which is "Seconds East of UTC" i.e. a unixtime value
with the timezone baked in to the value.

Sometimes we actually want Unixtime. So rename to clarify what this
function actually returns.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/root/usr/share/rpcd/ucode/luci